<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" id="myBtn" value="Click Me">
<script>
    /*
        attachEvent()和 detachEvent()
            - 好像只有IE浏览器才有
     */
    let btn = document.getElementById('myBtn')
/*    btn.attachEvent('onclick',function () {
        console.log('Clicked')
    })*/
</script>
</body>
</html>